import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
	{
		path: '/login',
		name: 'Login',
		component: () => import('@/pages/login/index.vue')
	},
	{
		path: '/',
		name: 'Login',
		component: () => import('@/pages/home/index.vue')
	}
]

const router = createRouter({
	history: createWebHistory(),
	routes
})

export default router

export async function setupRoute(app: App) {
	app.use(router)
}
